package com.liyy.platform.other.mytest;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Email
{
	public static void main(String [] args){
		String line="";
		try {
			BufferedReader br =new BufferedReader(new FileReader("E:\\xxoo.html"));
			 while ((line=br.readLine())!=null){
				 parse(line);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
	
	public static void parse(String line){
		 Pattern p = Pattern.compile("[\\w[.-]]+@[\\w[.-]]+\\.[\\w]+");
		 Matcher m = p.matcher(line);
		 while(m.find()){
		 System.out.println(m.group());
		 }
	}
}